<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>后台管理</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="icon" href="javascript:;">
  <link rel="stylesheet" href="../../resource/layui/css/layui.css"  media="all">
  <link rel="stylesheet" href="../../resource/myResource/css/no_read_item.css">
</head>
<style>
</style>
<body>
    <form class="layui-form" action="">
        <input type="hidden" id="id">
        <div class="layui-form-item" style="margin-top:25px">
            <div class="layui-inline" >
                <label class="layui-form-label" style="width:60px">学号</label>
                <div class="layui-input-inline mydiv">
                    <label id="studentIden" class="layui-form-label myvaluelable"></label>
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label"style="width:70px">姓名</label>
                <div class="layui-input-inline mydiv">
                    <label id="studengName" class="layui-form-label myvaluelable"></label>
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label" style="width:60px">性别</label>
                <div class="layui-input-inline mydiv">
                    <label id="gender" class="layui-form-label myvaluelable"></label>
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label" style="width:60px">宿舍</label>
                <div class="layui-input-inline mydiv">
                    <label id="studentAddr" class="layui-form-label myvaluelable"></label>
                </div>
            </div>
        </div>

        <div class="layui-collapse" style="margin-left:20px;width:800px">
            <div class="layui-colla-item">
                <h2 class="layui-colla-title">
                    <li class="layui-nav-item" style="width:75px">
                        <a href="javascropt:;">报修记录</a>
                    </li>
                </h2>
                <div class="layui-colla-content layui-show" style="padding-top:0px">
                    <table class="layui-hide" id="repair_table" lay-filter="test" style="width:80%;"></table>                
                </div>
            </div>
        </div>

    </form>
    <script src="../../resource/jquery/dist/jquery.js"></script>
    <script src="../../resource/layui/layui.js" charset="utf-8"></script>
    <script src="../../resource/myResource/js/base.js"></script>
    <script src="../../resource/myResource/js/util/dictionary.js"></script>
    <script type="text/javascript">
        var id=GetQueryString("id");
        $.ajax({
            url:head+"/student/getStudentById",
            dataType:"json",
            type:"POST",
            data:{"id":id},
            success:function(redata){
                layui.use(['form','table'], function(){
                    var util = layui.util;
                    var data = redata.data;
                    $("#studentIden").text(data.studentIden);
                    $("#studengName").text(data.studengName);
                    $("#gender").text(getGender(data.gender));
                    $("#studentAddr").text(data.studentAddr);
                });
            }
        }); 
    </script>
    <script src="../../resource/myResource/js/student/student_history_list.js"></script>
    <script type="text/html" id="barDemo">
        <!-- <a class="layui-btn layui-btn-xs" lay-event="detail">详细</a> -->
        {{#     if(d.state == 0 ){      }}
            <a class="layui-btn layui-btn-xs" lay-event="history">详细</a>
        {{#    } else if(d.state == 1 || d.state == 2) {    }}
            <a class="layui-btn layui-btn-xs" lay-event="noread">详细</a>
        {{#    }  else if(d.state == 3) {    }} 
        <a class="layui-btn layui-btn-xs" lay-event="running">详细</a>
        {{#    }  else if(d.state == 4) {    }}
        <a class="layui-btn layui-btn-xs" lay-event="refuse">详细</a>
        {{#    }  }}
    </script>
</body> 
</html>